package com.summer.mall.service;

import com.summer.mall.common.ResponseService;
import com.summer.mall.entity.User;

/**
 * @author complone
 * @Description 用户服务
 * @Date 14:53 2018/7/6
 * @return 返回用户接口
 **/
public interface UserService {


    ResponseService<User> login(String username, String password);

    ResponseService<String> regist(User user);

    ResponseService<String> checkValid(String str,String type);

    ResponseService<String> getQuestionByUserName(String username);

    ResponseService<String> checkAnswer(String username, String question,String answer);

    ResponseService<String> forgetResetPassword( String username ,String passwordNew,String forgetToken);

    ResponseService<String> resetPassword(User user,String passwordNew,String passwordOld);

    ResponseService<User> updateInformation(User user);

    ResponseService<User> getInformation(Integer userId);

    ResponseService<String> checkAdminRole(User user);
}
